package com.witdata.common.domain.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.witdata.common.domain.docker.ContainerStatus;
import com.witdata.common.serializer.ToLongDeSerializer;
import lombok.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Builder
public class CodeDto {

    @JsonSerialize(using = ToStringSerializer.class)
    @JsonDeserialize(using = ToLongDeSerializer.class)
    private Long id;

    private String containerId;

    private String name;

    private ContainerStatus status;

    private UserDto user;

    private InstanceDto instance;

    private EnvironmentDto environment;
}
